<div class="nav-sub w1180">
	<ul class="zoom">
		<li><a class="on" href="">新增商户类目</a></li>
		<li><a href="/crm/org/list">商户列表</a></li>
<!-- 		<li><a href="/crm/org/catelog-list">商户类型</a></li> -->
		<li><a href="/crm/org/cate-list">商户类目</a></li>
	</ul>
</div>
<div class="main-ct w1180">
	<a href="javascript:history.go(-1);" class="btn-cs btn-blue btn-fillet mt10">返 回</a>
<form id="commonForm" method="post" action="/crm/org/insert-cate">
	<div class="form-info mt20">
		<dl>
			<dt>商户：</dt>
			<dd>
				<select name="org_id" id="org_id">
    			<?php if ($this->org):?>
				<?php foreach ($this->org as $k=>$v):?>
    				<option value="<?php echo $v['org_id']; ?>"><?php echo $v['org_name']; ?></option>
    			<?php endforeach; ?>
    			<?php else:?>
    				<option value="">请选择</option>
				<?php endif;?>		
    			</select>
			</dd>
		</dl>
		<dl>
			<dt>类目名称：</dt>
			<dd>
				<input type="text" class="txt" name="category_name" id="category_name">
			</dd>
		</dl>
		<dl>
			<dt>类目描述：</dt>
			<dd><textarea  class="txt" name="category_description" id=""></textarea></dd>
		</dl>

	</div>
	<p class="mt30 txt-center">
		<input class="input-cs btn-fillet btn-green" type="submit" value="确定" />
		<input class="input-cs btn-fillet mr20" type="reset" value="取消" />
	</p>
</form>
</div>

<script type="text/javascript">

    $().ready(function() {
    	$("#commonForm").validate({
    		debug:true,
    		rules: {
    			org_id: {
    				required: true,
    			},
    			category_name: {
    				required: true,
    			},
    			category_description: {
    				required: true,
    			},
    	
    		},
    		submitHandler:function(form){ 
    	            form.submit();
    	    }   
    	});
    
    });
</script>